package org.example.mapper;

import org.example.pojo.EmployeeAndName;
import org.example.pojo.EmployeeScoreVo;
import org.example.pojo.Score;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface PerformanceScoreMapper {
    /**
     * 员工绩效
     *
     * @return {@link List}<{@link EmployeeScoreVo}>
     */
    List<EmployeeScoreVo> selectEmployeeScore();

    /**
     * 查询员工通过id
     *
     * @param id id
     * @return {@link EmployeeAndName}
     */
    EmployeeAndName selectEmployeeById(int id);

    /**
     * 绩效得分记录
     *
     * @param message 消息
     * @return {@link List}<{@link Score}>
     */
    List<Score> selectScoreRecord(String message);

    /**
     * 员工评数通过id
     *
     * @param id id
     * @return {@link EmployeeScoreVo}
     */
    EmployeeScoreVo selectEmployeeScoreById(int id);

    /**
     * 插入分数通过id
     *
     * @return int
     */
    int insertScoreById(Map<String,Object> map);

    /**
     * 通过名称或id或性别查询
     *
     * @param map
     * @return {@link List}<{@link EmployeeScoreVo}>
     */
    List<EmployeeScoreVo> selectByAndNameOrIdOrSex(Map<String,Object> map);

    /**
     * 更新通过id
     *
     * @return int
     */
    int updateById(Map<String,Integer> map);
}
